package Structural.Adapter.objectPattern;

import Structural.Adapter.classPattern.Adaptee;
import Structural.Adapter.classPattern.Target;

//推荐使用对象适配器类
//对象适配器类：适用于适配者是接口的情况
public class ObjectAdapter implements Target
{
    private Adaptee adaptee;
    public ObjectAdapter(Adaptee adaptee)
    {
        this.adaptee=adaptee;
    }
    @Override
    public void request()
    {
        adaptee.specificRequest();
    }
}
